package com.yuyou.fn.educational.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.educational.entity.Discount;
import com.yuyou.fn.educational.vo.DiscountQueryVo;
import com.yuyou.fn.educational.vo.DiscountSaveOrUpdateVo;
import com.yuyou.fn.platform.permission.DataPermission;

import java.util.Date;
import java.util.List;

/**
 *
 * Discount 表数据服务层接口
 *
 */
public interface IDiscountService extends ISuperService<Discount,Long> {


    Page<Discount> findDiscountByQuery(DiscountQueryVo discountQueryVo, DataPermission dataPermission, int pageNo, int pageSize);

    void delDiscount(Long discountId);

    void saveOrUpdateDiscount(DiscountSaveOrUpdateVo discountSaveOrUpdateVo);

    List<Discount> findDiscountOfEffectivePolicy(Long areaTeamId);

    List<Discount> findEffectiveForNetRegByAreaTeamId(Long areaTeamId );

    List<Discount> findEffectiveWithoutPolicyByAreaTeamId(Long areaTeamId , Date time  );

}